package xin.nick.demo.consumer;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import xin.nick.demo.api.UserService;

import java.io.IOException;

/**
 * @auther: Nick inickning@outlook.com
 * @date: 2021/4/13 21:03
 * @description:
 */
public class ConsumerApp {

    public static void main(String[] args) throws IOException {
        ApplicationContext context = new ClassPathXmlApplicationContext("consumer.xml");
        UserService userService = context.getBean(UserService.class);
        System.out.println(userService.getUser());

        System.in.read();
    }
}
